import api from '../http/index.js'
import expireStorage from '@/util/storeUtil.js'


const token = {
	state: {
		// 背景图片设置
		bgImageSetUp: {
			
		},
	},

	mutations: {
		SET_BG_SETUP: (state, data) => {
			state.bgImageSetUp = data
		},
	},

	actions: {
		// 刷新token
		GetBgImageSetup({commit,state}) {
			let headers = {
				"Content-Type": "application/json",
				"RefreshToken": expireStorage.getCache('refreshToken')
			}
			return api.refreshToken({header: headers})
		},


	}
}

export default token
